package org.springsource.examples.crm.model;

import java.util.HashSet;
import java.util.Set;

public class Customer implements java.io.Serializable {
	private Long id;
	private String firstName;
	private String lastName;
	private Set purchases = new HashSet();

	public Customer(Long id, String firstName, String lastName) {
		super();
		this.id = id;
		this.firstName = firstName;
		this.lastName = lastName;
	}
	
	public Customer( String firstName, String lastName) {
		super();
//		this.id = id;
		this.firstName = firstName;
		this.lastName = lastName;
	}

	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public Set getPurchases() {
		return purchases;
	}

	public void setPurchases(Set purchases) {
		this.purchases = purchases;
	}

}
